package com.hmall.search.service;

import com.hmall.search.common.dto.ItemDoc;
import com.hmall.search.common.dto.PageDTO;
import com.hmall.search.pojo.RequestParams;

import java.util.List;
import java.util.Map;

public interface SearchService  {
    List<String> getSuggestions(String prefix);

    Map<String, List<String>> getFilters(RequestParams requestParams);

    PageDTO<ItemDoc> getList(RequestParams requestParams);

    void insert(Long id);

    void delete(Long id);
}
